import request from '@/utils/request'

export function fetchReturnedBillList(params) {
  return request({
    url: '/api/bill/returnedBill/getList',
    method: 'post',
    params
  })
}

export function createReturnedBill(params) {
  return request({
    url: '/api/bill/returnedBill/add',
    method: 'post',
    params
  })
}

export function updateReturnedBill(data) {
  return request({
    url: '/api/bill/returnedBill/update',
    method: 'post',
    data
  })
}

export function deleteReturnedBill(params) {
  return request({
    url: '/api/bill/returnedBill/delete',
    method: 'post',
    params
  })
}

export function fetchSelectItemList() {
  return request({
    url: '/api/bill/returnedBill/fetchSelectItem',
    method: 'post',
  })
}